package com.lagou.edu.dao;

import com.lagou.edu.entity.UserToken;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface UserTokenDao extends JpaRepository<UserToken, Long> {

    /**
     * 获取用户token
     */
    public List<UserToken> findUserTokenByToken(String token);

    /**
     * 根据邮箱查询Token
     */
    public List<UserToken> findUserTokenByEmail(String email);

}
